﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml;
using System.IO;

namespace XMLSchemaExtractor
{
    class IO
    {
        public XmlDocument LoadXmlDocument(string filePath) 
        {
            XmlDocument xmlDoc = new XmlDocument();
            xmlDoc.Load(filePath);

            return xmlDoc;
        }

        public void WriteToFile(string filePath, string[] lines)
        {
            StreamWriter wr = new StreamWriter(filePath);
            foreach (string line in lines)
            {
                wr.WriteLine(line);
            }
            wr.Close();
        }
    }
}
